﻿@model CodeCamp.Models.EventMgmt.SiteUserEditModel

<table>
    <tbody>
        <tr>
            <th>Site User Id</th>
            <td>@Html.DisplayFor(model => model.SiteUserId)</td>
        </tr>
        <tr>
            <th>First Name</th>
            <td>@Html.DisplayFor(model => model.FirstName)</td>
        </tr>
        <tr>
            <th>Last Name</th>
            <td>@Html.DisplayFor(model => model.LastName)</td>
        </tr>
        <tr>
            <th>Presenter at:</th>
            <td>
                 @{ var first = true; }
                 @foreach (var pe in Model.PresenterEvents)
                 {
                     if (first)
                     {
                         first = false;
                     }
                     else
                     {
                         <text><br /></text>
                     }
                     @Html.ActionLink(string.Format("Detail for {0}", pe.EventShortName), "Details", "Presenters", new { id = pe.PresenterId, eventName = pe.EventShortName }, null)
                 }
            </td>
        </tr>
    @if (Model.SiteUserHasMembership)
    {
        <tr>
            <th>Username</th>
            <td>@Html.DisplayFor(model => model.MemberUsername)</td>
        </tr>
    }
        <tr>
            <th>User Identity Issuer</th>
            <td>@Html.DisplayFor(model => model.UserIdentityIssuer)</td>
        </tr>
        <tr>
            <th>User Identity Provider</th>
            <td>@Html.DisplayFor(model => model.UserIdentityProvider)</td>
        </tr>
        <tr>
            <th>User Identity Claim</th>
            <td>@Html.DisplayFor(model => model.UserIdentityClaim)</td>
        </tr>
    @if (Model.SiteUserHasMembership)
    {
        <tr>
            <th>Member Email Address</th>
            <td>@Html.DisplayFor(model => model.MemberEmailAddress)</td>
        </tr>
    }
        <tr>
            <th>Site User Email Address</th>
            <td>@Html.DisplayFor(model => model.EmailAddress)</td>
        </tr>
        <tr>
            <th>Site User Claim Email Address</th>
            <td>@Html.DisplayFor(model => model.UserClaimEmailAddress)</td>
        </tr>
        <tr>
            <th>Is Big Cheeze</th>
            <td>@Html.DisplayFor(model => model.IsBigCheeze)</td>
        </tr>
        <tr>
            <th>Is Event Editor</th>
            <td>@Html.DisplayFor(model => model.IsEventContentEditor)</td>
        </tr>
        <tr>
            <th>Is Event Track Lead</th>
            <td>@Html.DisplayFor(model => model.IsEventTrackLead)</td>
        </tr>
        <tr>
            <th>Is Presenter</th>
            <td>@Html.DisplayFor(model => model.IsPresenter)</td>
        </tr>
        <tr>
            <th>Is Event Previewer (@Model.NonPublicEventPreviewRole)</th>
            <td>@Html.DisplayFor(model => model.IsEventPreviewer)</td>
        </tr>

        <tr>
            <th>IP Address at signup</th>
            <td>@Html.DisplayFor(model => model.IpAtSignup)</td>
        </tr>
        <tr>
            <th>Created by</th>
            <td>@Html.DisplayFor(model => model.CreatedBy)</td>
        </tr>
        <tr>
            <th>Created (UTC)</th>
            <td>@Html.DisplayFor(model => model.CreatedUTC)</td>
        </tr>

        <tr>
            <th>Updated by</th>
            <td>@Html.DisplayFor(model => model.UpdatedBy)</td>
        </tr>
        <tr>
            <th>Updated (UTC)</th>
            <td>@Html.DisplayFor(model => model.UpdatedUTC)</td>
        </tr>
        <tr>
            <th>Last Login (UTC)</th>
            <td>@Html.DisplayFor(model => model.LastLoginUTC)</td>
        </tr>
        <tr>
            <th>Last Activity (UTC)</th>
            <td>@Html.DisplayFor(model => model.LastOnlineActivityUTC)</td>
        </tr>

    @if (Model.SiteUserHasMembership)
    {
        <tr>
            <th>CreationDate</th>
            <td>@Html.DisplayFor(model => model.MemberCreationDate)</td>
        </tr>

        <tr>
            <th>LastLoginDate</th>
            <td>@Html.DisplayFor(model => model.MemberLastLoginDate)</td>
        </tr>
        <tr>
            <th>LastActivityDate</th>
            <td>@Html.DisplayFor(model => model.MemberLastActivityDate)</td>
        </tr>
    }
    @if (Model.SiteUserHasMembership)
    {
        <tr>
            <th>IsApproved</th>
            <td>@Html.DisplayFor(model => model.MemberIsApproved)</td>
        </tr>
        <tr>
            <th>IsLockedOut</th>
            <td>@Html.DisplayFor(model => model.MemberIsLockedOut)</td>
        </tr>
        <tr>
            <th>IsOnline</th>
            <td>@Html.DisplayFor(model => model.MemberIsOnline)</td>
        </tr>
    }
        @*
        <tr>
            <th></th>
            <td></td>
        </tr>
        *@
    </tbody>
</table>
